/*
*
==============================================================================
*  Name        : 
*  Part of     : Omen Game Engine - Autodesk 3ds Studio .3ds file loader
*  Description : 
*  Version     : 1.0
*
*  Copyright (c) 2013 Lauri Kortevaara.
* 
==============================================================================
*/

#define PLUGIN_3DS_SOURCE 1

/// Plugin_3ds Headers
#include "Config.h"
#include "Model_3ds_Reader.h"

/// Omen Headers
#include <OmenEngine>

// STL Headers
#include <stdexcept>

using namespace std;

namespace Omen {

  /// <summary>Retrieves the engine version we're expecting</summary>
  /// <returns>The engine version the plugin was built against</returns>
  extern "C" PLUGIN_3DS_API int getEngineVersion() {
    return 1;
  }

  /// <summary>Registers the plugin to an engine kernel</summary>
  /// <param name="kernel">Kernel the plugin will be registered to</param>
  extern "C" PLUGIN_3DS_API void registerPlugin( Omen::IKernel* kernel) {
      kernel->getStorageServer()->addModelFileReader( new Model_3DS_Reader );
  }

} // namespace Omen
